<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.js"></script>
</head>

<body>
    <img src="weixin://wxpay/bizpayurl?pr=oLW9u9ozz" alt="">
</body>

</html>
<script>
    let btn = document.querySelector('button');
    //节流:频繁的操作变为少量的操作
    btn.onclick = _.throttle(function () {
        console.log('少量触发');
    }, 10000);
</script>